package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.UserPowerByProvinceMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.UserPowerByProvince;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.UserPowerByProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserPowerByProvinceServiceImpl implements UserPowerByProvinceService {
    @Autowired
    private UserPowerByProvinceMapper userPowerByProvinceMapper;

    @Override
    public List<UserPowerByProvince> selectAll() {
        return userPowerByProvinceMapper.selectAll();
    }

    @Override
    public int insert(UserPowerByProvince userPowerByProvince) {
        return userPowerByProvinceMapper.insert(userPowerByProvince);
    }
}
